import service from "./index";

let task={
    getTasks(){
        return service.get('/tasks')
    },
    createTask(task){
        return service.post(
            '/tasks',
            task
        )
    },
    deleteTask(id){
        return service.delete(`/tasks/${id}`)
    },
    completeTask(id){
        return service.put(`/tasks/${id}`)
    }
}
export default task